package com.vegetable.modules.entity.stock.to;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.modules.entity.baseData.po.BaseQueryPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 价格趋势查询参数传输对象
 * </p>
 *
 * @author Qwen
 * @since 2025-09-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="价格趋势查询参数", description="价格趋势查询参数")
public class PriceTrendQueryTO extends BaseQueryPO {

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "规格ID")
    private Long specsId;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "查询类型：1-包装单价，2-蔬菜单价，3-每公斤成本价")
    private Integer queryType;
}